package com.itheima.day01;

import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入一个三位数");
        int i = sc.nextInt();
        //取三位数的个位
        int ge= i%10;
        //取三位数的十位
        int shi= i/10%10;
        //取三位数的百位
        int bai=i/100;
        System.out.println("整数"+i+"个位为"+ge);
        System.out.println("整数"+i+"十位为"+shi);
        System.out.println("整数"+i+"百位为"+bai);
    }
}
